<!DOCTYPE html>
<html>
  <head>
  <meta charset="UTF-8"/>
    <title>title</title>
  </head>
  <body>
    <a href="/">Home</a>
    <a href="/<%=country.file_name%>"><%=country.name%></a>
    <a href="/<%=country.file_name%>/<%=city.file_name%>"><%=city.name%></a>
    <a href="/<%=country.file_name%>/<%=city.file_name%>/<%=department.file_name%>"><%=department.name%></a>
    <p>
	<%
	if (text_list!=null){
		for (var i=0; i<text_list.length; i++){
			%><%=text_list[i]%><br><%
		}
	}
	%>
	</p>
	<p>
	<%
    	if (link_list!=null){
    	for (var i=0; i<link_list.length; i++){
    	if (link_list[i].department!=null){
    	%><a href="/<%=link_list[i].country.file_name%>/<%=link_list[i].city.file_name%>/<%=link_list[i].department.file_name%>" title="<%=link_list[i].department.name%>"><%=link_list[i].country.name%> <%=link_list[i].city.name%> <%=link_list[i].department.name%></a><br><%
    	}else if (link_list[i].city!=null){
    	%><a href="/<%=link_list[i].country.file_name%>/<%=link_list[i].city.file_name%>" title="<%=link_list[i].city.name%>"><%=link_list[i].country.name%> <%=link_list[i].city.name%></a><br><%
    	} else {
    	%><a href="/<%=link_list[i].country.file_name%>" title="<%=link_list[i].country.name%>"><%=link_list[i].country.name%></a><br><%
    	}
    	}
    	}
    	%>
	</p>
    <table>
      <tr>
        <td><%=department.name%></td>
        <td><%=department.address%></td>
        <td><%=department.zip_code%></td>
        <td><%=department.flag1%></td>
        <td><%=department.phone%></td>
        <td><%
        if (department.work_time_list!=null){
        	for (var j=0; j<department.work_time_list.length;j++){
        	var work_time=department.work_time_list[j];
        %><%=work_time.day_of_the_week%>:<%=work_time.time%><%
        	}
        }
        %></td>
        <td>
        <%
                if (department.service_list!=null){
                	for (var j=0; j<department.service_list.length;j++){
                	var service=department.service_list[j];
                %><%=service.name%><%
                	}
                }
        %>
        </td>
      </tr>
    </table>

  </body>
</html>
